﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Malu.Entity;

namespace MaluJg.web.ProcessInput
{
    [AjaxPro.AjaxNamespace("JiaDing.Platform")]
    public partial class FSImport : Wicresoft.Framework.Authentication.BasePage
    {
        private void Page_Load(object sender, System.EventArgs e)
        {
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            AjaxPro.Utility.RegisterTypeForAjax(typeof(FSImport));
        }
        [AjaxPro.AjaxMethod]
        public AjaxProResult GetStatus()
        {
            AjaxProResult result = new AjaxProResult();
            try
            {
                UploadClass uc = new UploadClass();

                if (Session["UploadClass"] != null)
                {
                    uc = (UploadClass)Session["UploadClass"];
                    Session.Remove("UploadClass");
                }
                return new AjaxProResult(uc, 0, "");
            }
            catch (Exception exc)
            {
                return new AjaxProResult(-1, -1, exc.Message);
            }

        }
        protected string FormType
        {
            get
            {
                return Request["formtype"] ?? string.Empty;
            }

        }
       
    }
}
